
package org.GUI.Modules;
import javax.swing.*;

public class ButtonGrpArray extends JFrame {
	
	
	public ButtonGrpArray() {
		super("Array Buttons");
		setBounds(100, 100, 300, 125);
		
		JRadioButton[] JRdArray = new JRadioButton[3];	
		JRdArray[0] = new JRadioButton("XML");
		JRdArray[1] = new JRadioButton("RSS", true);
		JRdArray[2] = new JRadioButton("Atom");
		
		JLabel Jl = new JLabel("Choose a Feed Reader Format");
		JPanel Jp = new JPanel();
		
		ButtonGroup BtnGrp = new ButtonGroup();
		for (int i = 0;i < JRdArray.length; i++){
			BtnGrp.add(JRdArray[i]);
			Jp.add(JRdArray[i]);
		}
		add(Jp);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setVisible(true);
		
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ButtonGrpArray BtnGrp = new ButtonGrpArray();

	}

}
